﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BesAsm.Stormwater.HspfCore
{
  public class Catchment : ICatchment
  {
    private string _name;
    private LandSegmentsCollection _segments;
    private double _area;

    public Catchment(string name)
    {
      _name = name;
      _segments = new LandSegmentsCollection();
    }

    public string Name
    {
      get { return _name; }
    }

    public LandSegmentsCollection Segments
    {
      get { return _segments; }
    }

    public double Area 
    {
      get { return _area; }
      set { _area = value; }
    }

    public void AddSegment(HspfCore.SegmentType segmentType, int segmentNum, double acres)
    {
      LandSegment segment = new LandSegment(segmentNum, segmentType);
      segment.Area = acres;

      _segments.Add(segment);
    }
  }
}
